package com.mvc.controller;

import com.db.entity.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@Controller
@RequestMapping("/usermange")
public class UserManageController {

    @RequestMapping("/add")
    public void addUser(User user, HttpServletResponse response) throws IOException {

        response.getWriter().write("添加成功");
        response.flushBuffer();
    }
}
